<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<c:set value="recruit" var="moduleName" scope="request" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<title>进度统计报表</title>
	</head>
	<body>
		<dict:dict type="province,city,district" var="provincecitydistrict" />
		<script type="text/javascript">
var provincecitydistrict = eval('('+'<%=application.getAttribute("provincecitydistrict")%>'+')');
</script>
		<div class="div-content">
			<form action="<c:url value='/console/recruit/applyProcessReport.do'/>" method="post">
				<input type="hidden" name="method" class="method" value="list" />
				<table class="table-layout">
					<tr class="tr-odd">
						<td class="td-label">
							申请投资区域
						</td>
						<td>
							<span id="dropContainer_0"> <input type="hidden" name="filter_provinceId" value="<c:out value="${filters.provinceId}" />" /> <select id="drop_0"></select> </span>省&nbsp;&nbsp; <span id="dropContainer_1"> <input type="hidden" name="filter_cityId"
									value="<c:out value="${filters.cityId}" />" /> <select id="drop_1"></select> </span>市&nbsp;&nbsp; <span id="dropContainer_2"> <input type="hidden" name="filter_districtId" value="<c:out value="${filters.districtId}" />" /> <select id="drop_2"></select>
							</span>区
						</td>
					</tr>
					<tr class="tr-even">
						<td class="td-label">
							申请日期
						</td>
						<td>
							<input type="text" name="filter_earlierDate" value="<c:out value="${filters.earlierDate}" />" class="Wdate" onclick="WdatePicker()" />
							&nbsp;&nbsp;~&nbsp;&nbsp;
							<input type="text" name="filter_laterDate" value="<c:out value="${filters.laterDate}" />" class="Wdate" onclick="WdatePicker()" />
						</td>
					</tr>
					<tr class="tr-odd">
						<td class="td-label">
							审批阶段
						</td>
						<td>
							<input type="hidden" id="filter_step" name="filter_step" value="<c:out value="${filters.step}" />" />
							<select id="selectstep">
								<option value="">
									请选择
								</option>
								<option value="1">
									申请确认
								</option>
								<option value="3">
									初审
								</option>
								<option value="4">
									走访
								</option>
								<option value="5">
									材料审核
								</option>
								<option value="6">
									SKN内审
								</option>
								<option value="7">
									决策委员会审批
								</option>
							</select>
						</td>
					</tr>
					<tr class="tr-even">
						<td class="td-label">
							状态
						</td>
						<td>
							<input type="hidden" id="filter_state" name="filter_state" value="<c:out value="${filters.state}" />" />
							<select id="selectstate">
								<option value="">
									请选择
								</option>
								<option value="2">
									待处理
								</option>
								<option value="1">
									通过
								</option>
								<option value="0">
									未通过
								</option>
							</select>
						</td>
					</tr>
					<tr class="tr-odd">
						<td class="td-label">
							公司名称
						</td>
						<td>
							<input type="text" name="filter_corp" value="<c:out value="${filters.corp}" />" />
						</td>
					</tr>
					<tr class="tr-even">
						<td class="td-label">
							申请编号
						</td>
						<td>
							<input type="text" name="filter_serial" value="<c:out value="${filters.serial}" />" />
						</td>
					</tr>
					<tr class="tr-odd">
						<td class="td-label">
							RBO
						</td>
						<td>
							<input type="hidden" id="filter_rsscId" name="filter_rsscId" value="<c:out value="${filters.rsscId}" />" />
							<select id="selectrsscId">
								<option value="">
									请选择
								</option>
								<logic:iterate id="rssc" name="rsscs">
									<option value="<c:out value="${rssc.code}" />">
										<c:out value="${rssc.name}" />
									</option>
								</logic:iterate>
							</select>
						</td>
					</tr>
				</table>
				<div class="right-opertion">
					<input type="submit" value="搜索" class="button" />
				</div>
				<br />
				<table class="table-layout">
					<tr class="tr-thead">
						<th rowspan="2" style="width:30px;">
							序号
						</th>
						<th rowspan="2">
							流水号
						</th>
						<th rowspan="2">
							提交日期
						</th>
						<th rowspan="2">
							申请单位全称
						</th>
						<th colspan="3">
							申请投资区域
						</th>
						<th rowspan="2">
							审批阶段
						</th>
						<th rowspan="2">
							处理状态
						</th>
						<th rowspan="2">
							RBO
						</th>
					</tr>
					<tr class="tr-thead">
						<th>
							省
						</th>
						<th>
							市
						</th>
						<th>
							县/区
						</th>
					</tr>
					<logic:present name="result">
						<logic-el:iterate name="result" id="applyJudgmentListVoEx" indexId="index">
							<tr class="<c:if test="${index % 2 == 0}">tr-odd</c:if><c:if test="${index % 2 == 1}">tr-even</c:if>">
								<td>
									<c:out value="${index + 1}" />
									&nbsp;
								</td>
								<td>
									<c:out value="${applyJudgmentListVoEx.serial}" />
									&nbsp;
								</td>
								<td>
									<c:out value="${applyJudgmentListVoEx.submitDate}" />
									&nbsp;
								</td>
								<td>
									<a href="<c:url value='applyBaseEx.do?method=view&id=${applyJudgmentListVoEx.applyId}'/>"><c:out value="${applyJudgmentListVoEx.corp}" /></a> &nbsp;
								</td>
								<td>
									<common:province name="applyJudgmentListVoEx" property="provinceId" />
									&nbsp;
								</td>
								<td>
									<common:city name="applyJudgmentListVoEx" property="cityId" />
									&nbsp;
								</td>
								<td>
									<common:district name="applyJudgmentListVoEx" property="districtId" />
									&nbsp;
								</td>
								<td style="text-align:center;">
									<c:choose>
										<c:when test='${1 == applyJudgmentListVoEx.step}'>
											申请确认
										</c:when>
										<c:when test='${3 == applyJudgmentListVoEx.step}'>
											初审
										</c:when>
										<c:when test='${4 == applyJudgmentListVoEx.step}'>
											走访
										</c:when>
										<c:when test='${5 == applyJudgmentListVoEx.step}'>
											材料审核
										</c:when>
										<c:when test='${6 == applyJudgmentListVoEx.step}'>
											SKN内审
										</c:when>
										<c:when test='${7 == applyJudgmentListVoEx.step}'>
											决策委员会审批
										</c:when>
									</c:choose>
									&nbsp;
								</td>
								<td style="text-align:center;">
									<c:choose>
										<c:when test='${"0" == applyJudgmentListVoEx.state}'>
											未通过											
										</c:when>
										<c:when test='${"1" == applyJudgmentListVoEx.state}'>
											已通过
										</c:when>
										<c:when test='${"2" == applyJudgmentListVoEx.state}'>
											待处理
										</c:when>
									</c:choose>
								</td>
								<td>
									<common:rssc name="applyJudgmentListVoEx" property="rsscId" />
								</td>
							</tr>
						</logic-el:iterate>
					</logic:present>
				</table>
				<br />
				<div style="text-align:center;">
					<img src="<c:url value="/DisplayChart?filename=" /><c:out value="${filename}" />" />
				</div>
			</form>
		</div>
		<script type="text/javascript">
showDropDown(provincecitydistrict,["filter_provinceId","filter_cityId","filter_districtId"],"drop");
bindSelect("selectstep","filter_step");
bindSelect("selectstate","filter_state");
bindSelect("selectrsscId","filter_rsscId");
</script>
	</body>
</html>
